package com.mifengkong.im;

import android.content.Context;
import android.text.TextUtils;


/**
 * Created by jack on 17/5/8
 */

public class DemoApplication {

    private DemoApplication() {

    }

    public static void init(Context context) {
        init(context, null,null);
    }


    public static void init(Context context, String imKey,String userAvatar) {
        Preferences.init(context);
        if (!TextUtils.isEmpty(imKey)) {
            Preferences.getInstance().setAppKey(imKey);
        }
        DemoHelper.getInstance().init(context,userAvatar);
    }
}